<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!doctype html>
<html>
	<head>
		<!-- Basic Page Needs -->
		<meta charset="utf-8">
		<title>电影信息</title>
		<meta name="description" content="A Template by Gozha.net">
		<meta name="keywords" content="HTML, CSS, JavaScript">
		<meta name="author" content="Gozha.net">

		<!-- Mobile Specific Metas-->
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta content="telephone=no" name="format-detection">
		<!-- Fonts -->
        <!-- Font awesome - icon font -->
        <link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
        <!-- Roboto -->
        <link href='http://fonts.useso.com/css?family=Roboto:400,100,700' rel='stylesheet' type='text/css'>
        <!-- Open Sans -->
        <link href='http://fonts.useso.com/css?family=Open+Sans:800italic' rel='stylesheet' type='text/css'>
		<!-- jQuery UI -->
		<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" rel="stylesheet">
		<!-- Mobile menu -->
		<link href="css/gozha-nav.css" rel="stylesheet" />
		<!-- Select -->
		<link href="css/external/jquery.selectbox.css" rel="stylesheet" />
		<!-- REVOLUTION BANNER CSS SETTINGS -->
		<link rel="stylesheet" type="text/css" href="rs-plugin/css/settings.css" media="screen" />
		<link href="css/style-before.css?v=1" rel="stylesheet" />
		<!-- Custom -->
		<link href="css/style.css?v=1" rel="stylesheet" />
		<!-- Swiper slider -->
		<link href="css/external/idangerous.swiper.css" rel="stylesheet" />
		<!-- Magnific-popup -->
		<link href="css/external/magnific-popup.css" rel="stylesheet" />
		
		<!-- Modernizr -->
		<script src="js/external/modernizr.custom.js"></script>
		<link rel="stylesheet" href="layui/css/layui.css"  media="all">

		<script type="text/javascript" src="js/jquerysession.js"></script>

	</head>

	<body>
		<div class="wrapper">
		<!-- Banner -->
		<!-- 上一个页面传过来的值 -->
        <input type="hidden" id="movieid" value="<%=request.getParameter("movieid") %>">
        <!-- 是否登录 -->
        <input type="hidden" id="getusername" value="<%=session.getAttribute("username") %>">
			<!-- Header section -->
			<jsp:include page="header.jsp"></jsp:include>
			
			<div style="height: 80px"></div>
			<!-- Main content -->
			<section class="container">
				<div class="col-sm-12">
					<!-- 收藏按钮 -->
					<button id='collstatus' type='button' style='border: none;outline: none;background-color: transparent;position: absolute; margin-top: 0px;margin-left: 206px;'></button>
					<!-- 排行榜 -->
					<div style="position: absolute;margin-left:775px;z-index: 1;">
						<aside>
	                       	 <div class="sitebar first-banner--left">
								<div style="height: 10px;"></div>
								 	 <div class="category category--discuss category--count marginb-sm mobile-category ls-cat" style='margin-left:100px;margin-top: -40px;height: 575px;'>
								    	  <h3 class="category__title">今日排行<br><span class="title-edition"></span></h3>
								     	 	<ol id="moviestoday">
								         	<!-- 今日排行 -->
								     		</ol>
								  	 </div>
	                          	</div> 
	                          </div>
	                     </aside>
                     </div>
					<div class="movie" id="movieinfo">
						
							<!-- 电影详情 -->

					</div>
					
					<!-- 排期 -洁敏-->
					<h2 class="page-heading">排期</h2>
					<div class="choose-container">
						<form id='select' class="select" method='get'>
							<span class="datepicker__marker"><i class="fa fa-calendar"></i>Date</span>
							<select name="select_item" id="select-sort" class="select__sort" tabindex="0">
								<option id="s1" selected='selected'></option>
								<option id="s2" value="2"></option>
								<option id="s3" value="3"></option>
							</select>
						</form>

						<a href="Navigation.html" id="map-switch" class="watchlist watchlist--map watchlist--map-full"><span class="show-map">查看影院位置</span><span
							 class="show-time">电影排期</span></a>
						<div class="clearfix"></div>

						<div class="time-select">
					
						</div>

                          <div class="booking-pagination">
                               <a href="#" class="booking-pagination__prev hide--arrow">
                                   <span class="arrow__text arrow--prev"></span>
                                   <span class="arrow__info"></span>
                               </a>
                               <a href="#" class="booking-pagination__next" id="btnnext">
                                   <span class="arrow__text arrow--next">下一步</span>
                                   <span class="arrow__info">选座</span>
                               </a>
                          </div>
					</div>
						<h2 class="page-heading" id="total2"></h2>

						<div class="comment-wrapper">
							<!-- 影评流加载 -->
							<div class="comment-sets"  id="comment">
								
	
							</div>
						</div>
					</div>
				</div>

			</section>
			
			<div class="clearfix"></div>
			<jsp:include page="footer.jsp"></jsp:include>
		</div>
		<jsp:include page="LoginAndRegister.jsp"></jsp:include>

		<script src="http://ajax.useso.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
		<script>
			window.jQuery || document.write('<script src="js/external/jquery-1.10.1.min.js"><\/script>')
		</script>
		<!-- Migrate -->
		<script src="js/external/jquery-migrate-1.2.1.min.js"></script>
		<!-- Bootstrap 3-->
		<script
			src="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
		<!-- jQuery REVOLUTION Slider -->
		<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
		<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
		
		<!-- jQuery UI -->
		<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>

		<!-- Mobile menu -->
		<script src="js/jquery.mobile.menu.js"></script>
		<!-- Select -->
		<script src="js/external/jquery.selectbox-0.2.min.js"></script>

		<!-- Stars rate -->
		<script src="js/external/jquery.raty.js"></script>
		<!-- Swiper slider -->
		<script src="js/external/idangerous.swiper.min.js"></script>
		<!-- Magnific-popup -->
		<script src="js/external/jquery.magnific-popup.min.js"></script>

		<!-- jQuery REVOLUTION Slider -->
		<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
		<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
		<!-- Form element -->
		<script src="js/external/form-element.js"></script>
		<!-- Form validation -->
		<script src="js/form.js"></script>
		<script src="layui/layui.js" charset="utf-8"></script>

		<script src="js/custom.js"></script>
	
		<script type="text/javascript" src="js/jquery.cookie.js"></script>
		
		<script src="js/customf.js"></script>

		<jsp:include page="JudegeLogin.jsp"></jsp:include>

		<script type="text/javascript">
			$(document).ready(function() {
				init_Home();
			});
		</script>
		
		<script type="text/javascript">
			var addthis_config = {
				"data_track_addressbar": true
			};
		</script>
		
		<script type="text/javascript">
			$(function(){		
				//获取电影的详细信息
				$.ajax({
					url:"getminfo",
					type:"GET",
					data:{
						movieId:movieid
					},
					success:function(data){
						
						//查询电影的类别
						var movieType=getmtype(data.movieid);
						
						$("#movieinfo").append("<h2 class='page-heading'>"+data.moviename+"</h2>"
							+"<div class='movie__info'>"
							+"<div class='col-sm-4 col-md-3 movie-mobile' style='width: 225px;'>"
							+"<div class='movie__images'>"
							+"<span class='movie__rating' style='position: absolute;margin-left: 133px; margin-top: 290px;'>"+data.score+"</span>"
							+"<img alt='' src='"+data.moviepicture+"'>"
							+"</div><div><div id='movierate' style='position: absolute;margin-left: 15px;'></div></div><div class='movie__rate'></div></div>"
							+"<div class='col-sm-8 col-md-9'>"
							+"<p class='movie__time'>"+data.duration+" min</p>"
							+"<p class='movie__option'><strong>国家：</strong><a href='#'>"+data.place+"</a></p>"
							+"<p class='movie__option'><strong>语言：</strong><a href='#'>"+data.language+"</a></p>"
							+"<p class='movie__option'><strong>分类："+movieType+"</p>"
							+"<p class='movie__option'><strong>上映时间：</strong>"+new Date(data.releasedate).getFullYear ()+"-"+(new Date(data.releasedate).getMonth() + 1)+"-"+new Date(data.releasedate).getDate()+"</p>"
							+"<p class='movie__option'><strong>导演：</strong><a href='#'>"+data.director+"</a></p>"
							+"<p class='movie__option'><strong>主演：</strong><a href='#'>"+data.mainactor+"</a></p>"
							+"<p class='movie__option'><strong>票价：</strong><a href='#'>￥"+data.moviepirce+"</a></p><a href='#' class='comment-link' id = 'total'></a>"
							+"<a href='#' class='comment-link'></a></div></div>"
							+"<div class='clearfix'></div><div style='height:50px;'></div><h2 class='page-heading'>简介</h2>"
							+"<p class='movie__describe'>"+data.movieinfo+"</p>"
							+"<h2 class='page-heading'>预告片</h2>"
							+"<div align='center' style='background-color:#f5f5f5;'>"
							+"<embed src='"+data.movievideo+"' width='800px' height='410px'></embed></div>");
						
						//给星星赋值
						layui.use(['rate'], function(){
							  var rate = layui.rate;
							  
							  rate.render({
								    elem: '#movierate'
								    ,length:5
								    ,value: data.score
								    ,half: true //开启半星
								    ,readonly: true
								  });
							  
						});
						
						//判断用户是否有收藏，初始化界面
						$.ajax({
							url:"docoll",
							type:"POST",
							contentType:"application/json",
							data:JSON.stringify({
								 users: {
						                userid: userid
						         },
						         movies: {
						                movieid: movieid
						         }
							}),
							success:function(data){
								
								if(data==0){
									$("#collstatus").append(""
									+"<i class='layui-icon layui-icon-star' style='font-size: 25px; color: rgb(255, 184, 0);'>"
									+"</i>&nbsp;点击收藏");
								}else if(data!=0){
									$("#collstatus").append(""
										+"<i class='layui-icon layui-icon-star-fill' style='font-size: 25px; color: rgb(255, 184, 0);'>"
										+"</i>&nbsp;取消收藏");
								}
								
							},
							dataType:"json"
						});
						
					},
					dataType:"json"
				});
				
				//获取电影的类别
				function getmtype(movieId){
					var result="";
					$.ajax({
						type:"GET",
						url:"getmtypes",
						data:{
							movieId:movieId
						},
						async : false,
						success:function(data){
							//对返回值进行拼接
							for(var i=0;i<data.length;i++){
								if(i==0){
									result+=data[i].moviename;
								}else{
									result+=" | "+data[i].moviename;
								}
							}
							
						},
						dataType:"json"
					});
					return result;
				}
			});
		</script>
		<script type="text/javascript">
			$(function(){
				//用户点击收藏 改变收藏状态
				$("#collstatus").click(function(){
					
					//获取用户当前的收藏状态,这边要填电影id，用户id
					var collstatus=getmcoll(movieid,userid);
					
					//如果返回值为0，说明用户没收藏，所以要添加收藏
					if(collstatus==0){
						$.ajax({
							url:"addct",
							type:"POST",
							contentType:"application/json",
							data:JSON.stringify({
								 users: {
						                userid: userid
						         },
						         movies: {
						                movieid : movieid
						         }
							}),
							success:function(data){
								//清空文本
								$("#collstatus").text("");
								//追加
								$("#collstatus").append(""
									+"<i class='layui-icon layui-icon-star-fill' style='font-size: 25px; color: rgb(255, 184, 0);'>"
									+"</i>&nbsp;取消收藏");
								if(data.code==200){
									layui.use('layer', function(){
									  var layer = layui.layer;
									  
									  layer.msg('收藏成功！可到我的收藏查看');
									});	
								}
							},
							dataType:"json"
						});
					}
					//如果返回值为1，说明用户已经收藏，所以要取消收藏
					if(collstatus!=0){
						$.ajax({
							url:"delctbyum",
							type:"POST",
							contentType:"application/json",
							data:JSON.stringify({
								 users: {
						                userid: userid
						         },
						         movies: {
						                movieid : movieid
						         }
							}),
							success:function(data){
								//清空文本
								$("#collstatus").text("");
								//追加
								$("#collstatus").append(""
									+"<i class='layui-icon layui-icon-star' style='font-size: 25px; color: rgb(255, 184, 0);'>"
									+"</i>&nbsp;点击收藏");
								if(data.code==200){
									layui.use('layer', function(){
									  var layer = layui.layer;
									  
									  layer.msg('取消收藏成功');
									});
								}

							},
							dataType:"json"
						});
					}
				
					
				}); 
				
				//获取用户当前是否收藏的状态
				function getmcoll(movieId,userId){
					var result="";
					$.ajax({
						url:"docoll",
						type:"POST",
						contentType:"application/json",
						data:JSON.stringify({
							 users: {
					                userid: userId
					         },
					         movies: {
					                movieid: movieId
					         }
						}),
						async : false,
						success:function(data){
							//给result赋值
							result=data;
						},
						dataType:"json"
					});
					return result;
				}
			});
		</script>
		<script type="text/javascript">
			$(function(){
				//获取今日排行
				$.get("getmtoday",function(data){
				
					$.each(data,function(i,v){
						//拼接
						$("#moviestoday").append("<li>"+"<a href=movie-page-full.jsp?movieid="+v.movieid+" class='category__item' style='margin-left:-20px'>"+(i+1)+"、"+v.moviename+"</a>"+"</li>");
					});
					
				});
			});
		</script>
		<!-- 影评流加载 -->
		<script type="text/javascript">
		layui.use('flow', function() {
			var $ = layui.jquery; //不用额外加载jQuery，flow模块本身是有依赖jQuery的，直接用即可。
			var flow = layui.flow;

			flow.load({
				elem : '#comment' //指定列表容器
				,
				isAuto : true,
				done : function(page, next) { //到达临界点（默认滚动触发），触发下一页
					var lis = [];
					//以jQuery的Ajax请求为例，请求下一页数据（注意：page是从2开始返回）
					//在这里的2要换成电影的id
					$.get('getMCByMId/'+movieid, {
						"page" : page
					}, function(res) {
						
						var total = res.count;
						$("#total").text("影评数："+total);
						$("#total2").text("影评("+total+")");
						console.log("total:"+total);
						//假设你的列表返回在data集合中
						layui.each(res.data, function(index, item) {
							
							lis.push("<div class='comment'>"+
							"<div class='comment__images'>"+
							"<img alt='' src='images/31-31.png'>"+//在这里给他加一个路径 图片路径可以用item.users.userpic获取
							"</div>"+
							"<a href='#' class='comment__author'>"+item.users.username+"</a>"+
							"<p class='comment__date'>"+new Date(item.commenttime).toLocaleString()+"</p>"+
							"<p class='comment__message'>"+item.content+"</p>"+					
							"<div id = '"+item.commentid+"'>"+"<p style='text-align: center'>"+"<a onclick=getMR("+item.commentid+")>"+"加载追评"+"</a>"
							+"</p>"+"</div>"+"</div>")						
						});
						//执行下一页渲染，第二参数为：满足“加载更多”的条件，即后面仍有分页
						//pages为Ajax返回的总页数，只有当前页小于总页数的情况下，才会继续出现加载更多
						next(lis.join(''), page < res.totalPage);
					});
				}
			});
		});
		
		function getMR(commentid){
			console.log(commentid);
			$("#"+commentid).text("");
		layui.use('flow', function() {
			var $ = layui.jquery; //不用额外加载jQuery，flow模块本身是有依赖jQuery的，直接用即可。
			var flow = layui.flow;
			console.log("test02");
			flow.load({
				elem : '#'+commentid //指定列表容器
				,isAuto : true
				,done : function(page, next) { //到达临界点（默认滚动触发），触发下一页
					var lis = [];
					//以jQuery的Ajax请求为例，请求下一页数据（注意：page是从2开始返回）
					//在这里的2要换成电影的id
					
					$.get("gmvbci/"+commentid, {
						"page" : page
					}, function(res) {
						//假设你的列表返回在data集合中
						layui.each(res.data, function(index, data) {
							
							lis.push(
							"<div class='comment comment--answer'>"+
							"<div class='comment__images'>"+
							"<img alt='' src='images/31-31.png'>"+
							"</div>"+
							"<a href='#' class='comment__author'>"+data.username+"</a>"+
							"<p class='comment__date'>"+new Date(data.reviewtime).toLocaleString()+"</p>"+
							"<p class='comment__message'>"+data.reviewcontent+"</p>"+
							"</div>"
											
					)
						});

						//执行下一页渲染，第二参数为：满足“加载更多”的条件，即后面仍有分页
						//pages为Ajax返回的总页数，只有当前页小于总页数的情况下，才会继续出现加载更多
						next(lis.join(''), page < res.totalPage);
					});
				}
			});
		});	
		}
	</script>

	<!-- 洁敏 -->	
	<script type="text/javascript">
		//获取前一个页面传过来的值
		var movieid = $("#movieid").val();
		var userid = <%=session.getAttribute("userid")%>;
		console.log("电影id："+movieid);
		
		$(function(){
			 //时间选择
			 //今天时间
			 var m,d;
	         var day = new Date();
	         day.setTime(day.getTime());
	         if(day.getMonth()+1<10){
	        	 m="0"+(day.getMonth()+1);
	         }else{
	        	 m=day.getMonth()+1;
	         }
	         if(day.getDate()<10){
	        	 d="0"+day.getDate();
	         }else{
	        	 d=day.getDate();
	         }  
	         var s1 = day.getFullYear()+"-" + m + "-" + d;
	         console.log(s1);
	         //明天时间
	         day.setTime(day.getTime()+24*60*60*1000);
	         if(day.getMonth()+1<10){
	        	 m="0"+(day.getMonth()+1);
	         }else{
	        	 m=day.getMonth()+1;
	         }
	         if(day.getDate()<10){
	        	 d="0"+day.getDate();
	         }else{
	        	 d=day.getDate();
	         }
	         var s2 = day.getFullYear()+"-" + m + "-" + d;
	         console.log(s2);
	         //后天时间
	         day.setTime(day.getTime()+24*60*60*1000);
	         if(day.getMonth()+1<10){
	        	 m="0"+(day.getMonth()+1);
	         }else{
	        	 m=day.getMonth()+1;
	         }
	         if(day.getDate()<10){
	        	 d="0"+day.getDate();
	         }else{
	        	 d=day.getDate();
	         }
	         var s3 = day.getFullYear()+"-" + m + "-" + d;
	         console.log(s3);
	         $("#s1").text(s1);
	         $("#s2").text(s2);
	         $("#s3").text(s3);
	        //排期信息
	 		$.ajax({
	 			url:"getScheInfo",
	 			type:"get",
	 			data:{
	 				time : $("#s1").text(),
	 				movieid : movieid
	 			},
	 			dataType:"json",
	 			success:function(data){
	 				console.log("进来了吗1");
	 				$.each(data.listmh,function(index,mh){
	 					console.log(mh.hallid);
	 				});
	 				$.each(data.lists,function(index,s){
	 					console.log(s.scheduleid+","+s.hall.hallid+","+changeTime(s.playtime));
	 				}); 
	 				$.each(data.listmh,function(index,mh){
	 				   $(".time-select").append(
	 					 "<div class='time-select__group group--first'>"
							+"<div class='col-sm-4'>"
								+"<p class='time-select__place'>"+mh.hallname+"</p>"
							+"</div>"
							+"<ul class='col-sm-6 items-wrap' id="+mh.hallid+">"
					     	+"</ul>"
						+"</div>"
						);
	 				   $.each(data.lists,function(index,s){
	 					   //此厅号没有排此电影、时间小于当前时间
	 					   if(mh.hallid!=s.hall.hallid ||new Date(changeTime1(s.playtime))<new Date()){
	 						  $("#"+mh.hallid).append("<li class='time-select__item1'>"+changeTime(s.playtime)+"</li>");	  
	 					   }else{
	 						  $("#"+mh.hallid).append("<li class='time-select__item'><input type='hidden' class='scheduleid' value="+s.scheduleid+">"+changeTime(s.playtime)+"</li>");	   
	 					   }				   
	 				   });
	 			    });
	 			}
	 		});
		});
		 
		</script>
		<script type="text/javascript">
		   //时间转换1--hh:mm
			function changeTime(time){
			    if(time){
			        var oDate = new Date(time*1),
			            oYear = oDate.getFullYear(),
			            oMonth = oDate.getMonth()+1,
			            oDay = oDate.getDate(),
			            oHour = oDate.getHours(),
			            oMin = oDate.getMinutes(),
			            oSen = oDate.getSeconds(),
			            //oTime = oYear +'-'+ getBz(oMonth) +'-'+ getBz(oDay) +' '+ getBz(oHour) +':'+ getBz(oMin) +':'+getBz(oSen);//拼接时间
			            oTime = getBz(oHour) +':'+ getBz(oMin);//拼接时间
			    return oTime;
			    }else{
		       		 return "";
			    }
			}
		   // 时间转化2 yyyy-mm-dd hh:mm:ss
			function changeTime1(time){
				    if(time){
				        var oDate = new Date(time*1),
				            oYear = oDate.getFullYear(),
				            oMonth = oDate.getMonth()+1,
				            oDay = oDate.getDate(),
				            oHour = oDate.getHours(),
				            oMin = oDate.getMinutes(),
				            oSen = oDate.getSeconds(),
				            oTime = oYear +'-'+ getBz(oMonth) +'-'+ getBz(oDay) +' '+ getBz(oHour) +':'+ getBz(oMin) +':'+getBz(oSen);//拼接时间
				            //oTime = getBz(oHour) +':'+ getBz(oMin);//拼接时间
				    return oTime;
				    }else{
			       		 return "";
				    }
				}
			//时间补零
			function getBz(num){
			    if(parseInt(num) < 10){
			        num = '0'+num;
			    }
			    return num;
			}
		</script>
    <script type="text/javascript">
		 //点击选时间  --jQuery append()动态拼接 添加class 事件不起作用
		 $(document).on('click','.time-select__item',function(){
		    		$(".time-select__item").removeClass("active");
	                $(this).addClass("active");
	     });
		 //是否登录session值
		 var getusername = $("#getusername").val();
		  //跳转页面+传值 
		 layui.use('layer',function(){
		    var layer = layui.layer;
			$("#btnnext").click(function(){
				var time=$(".active").text();
				var scheduleid=$(".active .scheduleid").val();
				if(getusername == "null"){
					layer.msg("请先去登录", {
						icon : 7,
						time : 1000
					});
				}
				else if(scheduleid!=null){
					location.href = "http://localhost:8080/My_Popcorn/SelectSeat.jsp?movieid="+movieid+"&scheduleid="+scheduleid;
				}else{
					layer.msg("请选择一个时间", {
						icon : 7,
						time : 1000
					});
				}			
			});
		  });
   </script> 
		
   <script type="text/javascript">
	//改变日期
	$("#select-sort").change(function(){
			//排期信息
	 		$.ajax({
	 			url:"getScheInfo",
	 			type:"get",
	 			data:{
	 				time:$("#select-sort option:selected").text(),
	 				movieid : movieid
	 			},
	 			dataType:"json",
	 			success:function(data){
	 				$(".time-select").empty();
	 			    
	 				$.each(data.listmh,function(index,mh){
	 					console.log(mh.hallid);
	 				});
	 				$.each(data.lists,function(index,s){
	 					console.log(s.scheduleid+","+s.hall.hallid+","+changeTime(s.playtime));
	 				}); 
	 				$.each(data.listmh,function(index,mh){
	 				   $(".time-select").append(
	 					 "<div class='time-select__group group--first'>"
							+"<div class='col-sm-4'>"
								+"<p class='time-select__place'>"+mh.hallname+"</p>"
							+"</div>"
							+"<ul class='col-sm-6 items-wrap' id="+mh.hallid+">"
					     	+"</ul>"
						+"</div>"
						);
	 				   $.each(data.lists,function(index,s){
	 					   //此厅号没有排此电影、时间小于当前时间
	 					   if(mh.hallid!=s.hall.hallid||new Date(changeTime1(s.playtime))<new Date()){
	 						  $("#"+mh.hallid).append("<li class='time-select__item1'>"+changeTime(s.playtime)+"</li>");	  
	 					   }else{
	 						  $("#"+mh.hallid).append("<li class='time-select__item'><input type='hidden' class='scheduleid' value="+s.scheduleid+">"+changeTime(s.playtime)+"</li>");	   
	 					   }				   
	 				   });
	 			    });
	 			}
		    });
		});
	</script> 

	

</body>
</html>
